import random
list1=[]
for i in range(6):
    list1.append(random.randint(0,100))
print(list1)

for i in range(len(list1)-1):
    for j in range(len(list1)-i-1):
        if list1[j]>list1[j+1]:
            list1[j],list1[j+1]=list1[j+1],list1[j]

print(list1)

